package org.jash.sportnews2109.dao

import androidx.room.Dao
import androidx.room.Query
import androidx.room.Upsert
import org.jash.sportnews2109.entity.User

@Dao
interface UserDao {
    @Upsert
    fun save(vararg user:User)
    @Query("select * from user where id = :id")
    fun findById(id:Int):User
}